<?php
define('BEVIN', TRUE);
if(strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {
	exit("0");
}

include_once("include/common.inc.php");

$uid = $user->checkUserLogin();
if(!$uid) {
	exit("0");
}

$id = $_GET['id'];
if($id>0) {
	$cardinfo = $card->getCardInfo($id);
	if($cardinfo) {
		echo json_encode($cardinfo);
	} else {
		exit("0");
	}
} else {
	exit("0");
}
?>